package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.entity.UserBankAccount;
import com.ruoyi.common.core.domain.entity.UserZfbAccount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 参数配置 数据层
 *
 * @author ruoyi
 */
@Mapper
@Repository
public interface UserZfbAccountMapper {
    void insertUserZfbAccount(UserZfbAccount userZfbAccount);

    void updateUserZfbAccount(UserZfbAccount userZfbAccount);

    List<UserZfbAccount> selectUserZfbAccountByUserId(@Param("userId") Long userId);

    UserZfbAccount selectUserZfbAccountById(@Param("id") Long id);

    UserZfbAccount selectDefaultByUserId (@Param("userId") Long userId);

    //取消用户默认账户
    void cancelDefaultByUserId(@Param("userId") Long userId);
}
